<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <!-- 引入jquery -->
    <script src="../js/jquery-1.9.1.min.js"></script>
</head>
<body>
<h1>登录成功页面</h1>
<button onclick="getUsername()">获取用户名</button>
<button onclick="isLogin()">判断用户是否登陆</button>
<button onclick="logout()">用户登出</button>
<br><br>
<button onclick="validate('三亚区管',2)">授权验证【符合策略】</button>
<button onclick="validate('三亚区管',4)">授权验证【不符合策略】</button>
<br><br>
<button onclick="messageEncryption()">消息加密【JSON格式】</button>
<button onclick="messageDecryption('1vMVztjZcHdGYr160IUnFOIA7n8eeTcTwjA4UG8OqDU=')">消息解密【JSON格式】</button>
<button onclick="messageEncryptionForXML()">消息加密【XML格式】</button>
<button onclick="messageDecryption('FY2ddnmOblkjUqAi4sHdLOdgYGCVYYyGhIg6MR4Nn2ycf4e/yDr1dLuoCJ4KkXj+')">
    消息解密【XML格式】</button>
<button onclick="saveKey()">保存秘钥</button>
<button onclick="deleteKey()">删除密钥</button>
<span class="showMessage" style="font-size: 20px"></span>

</body>
<script type="text/javascript" src="../js/home.js"></script>
</html>